import request from '@/utils/request'

// 配置单项目项目组织结构树
export function treeData(param) {
  return request({
    url: 'rest/projectOrg/treeData',
    method: 'post',
    data: param
  })
}

// 配置单项目项目组织结构树
export function getProjectOrgDetail(param) {
  return request({
    url: 'rest/projectOrg/detail',
    method: 'post',
    data: param
  })
}

// 保存项目组织
export function saveProjectOrg(param) {
  return request({
    url: 'rest/projectOrg/save',
    method: 'post',
    data: param
  })
}

// 删除组织
export function deleteProjectOrg(param) {
  return request({
    url: 'rest/projectOrg/delete',
    method: 'post',
    data: param
  })
}
//巡检报告提交
export function saveReport(param) {
  return request({
    url: 'rest/checkReport/Report',
    method: 'post',
    data: param
  })
}
//物资查询
export function saveMaterial(param) {
  return request({
    url: 'rest/detailsOfMaterialInspectionItems/save',
    method: 'post',
    data: param
  })
}
//获取上一次提交结果
export function getCheckItem(param) {
  return request({
    url: 'rest/detailsOfMaterialInspectionItems/getCheckItem',
    method: 'post',
    data: param
  })
}